 {
        
        cc.Class({
            extends: cc.Component,
            properties: {
                spBg: {
                    default: null,
                    type: cc.Sprite
                },
                nodeTingActionItemPrefab: {
                    default: null,
                    type: cc.Prefab
                }
            },
            onLoad: function () {
                this.content = Global.utils.searchNode(this.node, "content"), this.nodeWinIcon = Global.utils.searchNode(this.node, "spWinIcon"),
                    this.nodeSpBg = this.spBg.node, this.originWid = this.nodeSpBg.width, this.upheight = 19,
                    Global.notificationCenter.emit(Global.eventName.MSG_SHOWZHUANGJIATIP, !1);
            },
            initUI: function () {
                this.nodeSpBg.height = 198, this.nodeWinIcon.setPositionY(this.upheight), this.content.active = !0,
                    this.content.width = this.nodeSpBg.width, this.content.height = this.nodeSpBg.height;
                var e = Global.utils.searchComp(this.content, "labTip", cc.Label);
                e.getComponent(cc.Widget).updateAlignment(), e.string = "胡牌" + Global.utils.getUnit() + "数等于手牌点数之和(中发白=10" + Global.utils.getUnit() + ")";
            },
            start: function () {
            },
            update: function (e) {
                Global.roomInfoModel.getPlayModel() == Global.config.playModel.ERRENQUICK && this.nodeSpBg.width != this.originWid && this.initUI();
            },
            bindData: function (e) {
                if (this.nodeSpBg && e) {
                    for (var t = this.nodeSpBg.children; t.length > 1;) {
                        var n = t[1], o = n.getComponent("NodeTingActionItemController");
                        n.removeFromParent(), n.isValid && n.destroy(), o && o.isValid && o.destroy();
                    }
                    for (var i = 0; i < e.length; i++) {
                        var a = cc.instantiate(this.nodeTingActionItemPrefab);
                        this.nodeSpBg.addChild(a), Global.roomInfoModel.getPlayModel() == Global.config.playModel.ERRENQUICK && a.setPositionY(this.upheight),
                        (o = a.getComponent("NodeTingActionItemController")) && o.bindData(e[i]);
                    }
                    1 == e.length && (this.nodeSpBg.getComponent(cc.Layout).paddingLeft = 80, this.nodeSpBg.getComponent(cc.Layout).paddingRight = 80);
                }
            }
        })
    }